package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.base.BaseEntity;
import com.atguigu.yygh.model.base.BaseMongoEntity;
import com.atguigu.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * Created with IntelliJ IDEA
 *
 * @Date: 2022/12/19 - 14:20
 * @Author: Hyoung
 * @Description:
 */
@Repository
public interface HospitalRepository extends MongoRepository<Hospital, String> {

    /**
     * 判断是否有hscode
     *
     * @param hoscode
     * @return
     */
    Hospital findByHoscode(String hoscode);
}
